#include "generation_name.hpp"

G_Name::G_Name()
{
  time_t t;

  time(&t);

  out_file=to_string(t)+"_0.txt";
}

G_Name::G_Name(string log):cpt(0),log(log)
{
  out_file=log+"_0.txt";
}

string G_Name::get_name()
{
  return out_file;
}

void G_Name::next_name()
{
  ++cpt;
  out_file=log+"_"+to_string(cpt)+".txt";
}

void G_Name::rand_name(unsigned int cpt)
{
  time_t t;

  time(&t);

  out_file=to_string(t)+"_"+to_string(cpt)+".txt";
}
